// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import api from './api/api'
import storage from 'good-storage'
import fastclick from 'fastclick'
import 'comm/reset.css'
import 'comm/comm.css'
import 'comm/animate.min.css'
import 'vant/lib/vant-css/index.css'
import { Field,DatetimePicker,Toast,Lazyload,AddressEdit,Area} from 'vant'
import { Loadmore,InfiniteScroll } from 'mint-ui'
import Vconsole from 'vconsole'
import VueCookie from 'vue-cookie'
Vue.use(InfiniteScroll)
Vue.component(Loadmore.name, Loadmore)
Vue.use(Field)
Vue.use(DatetimePicker)
Vue.use(Lazyload)
Vue.use(Area)
Vue.use(VueCookie)
fastclick.attach(document.body)
Vue.use(require('vue-wechat-title'))
Vue.prototype.$api = api
Vue.prototype.$totast = Toast
Vue.config.productionTip = false
Vue.prototype.$storage = storage
/* eslint-disable no-new */
//let vConsole = new Vconsole()
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
